package com.group3.pojo.receive;

import com.group3.controller.Validated.DateValue;
import com.group3.pojo.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * AttendantReceive
 *
 * @author HY
 * 2021/06/11 10:47
 **/


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("考勤查询参数类")
public class AttendanceReceive extends Page {

//    @ApiModelProperty(value = "打卡日期时间段开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Past(message = "必须为过去的一个日期")
//    @DateValue(format = "yyyy-MM-dd")
    private Date startTime = null;

    @Past(message = "必须为过去的一个日期")
    @ApiModelProperty(value = "打卡日期时间段结束")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endTime = null;

    @ApiModelProperty(value = "专业", required = false)
    private String professional = "";

    @ApiModelProperty(value = "院系", required = false)
    private String departments = "";


    @ApiModelProperty(value = "年级", required = false)
    private String grade = "";

    @ApiModelProperty(value = "项目组id", required = false)
    private Integer groupId = null;

    @ApiModelProperty(value = "班级", required = false)
    private String klass = "";

    @ApiModelProperty(value = "课程名称", required = false)
    private String lessonName = "";

    @ApiModelProperty(value = "实训教师id", required = false)
    private String teacherS = "";

    @ApiModelProperty(value = "责任教师id", required = false)
    private String teacherZ = "";

    //（精确匹配）
    @ApiModelProperty(value = "学号", required = false)
    private String studentId = "";

    //（模糊查询）
    @ApiModelProperty(value = "学员名称", required = false)
    private String studentName = "";

    @ApiModelProperty(value = "考勤情况", required = false)
    private Integer type = null;
}
